cd ~

#install tmux

wget  https://github.com/tmux/tmux/releases/download/2.7/tmux-2.7.tar.gz
tar xzf tmux-2.7.tar.gz
cd tmux-2.7
./configure & make 
make install

cd ~
#install .tmux

git clone https://github.com/gpakosz/.tmux.git
ln -s -f .tmux/.tmux.conf
cp .tmux/.tmux.conf.local .

echo "set-option -g allow-rename off" >> ~/.tmux.conf.local #关闭窗口自动重命名


#install Tmux Resurrect

cd .tmux 
git clone https://github.com/tmux-plugins/tmux-resurrect.git

echo "run-shell ~/.tmux/tmux-resurrect/resurrect.tmux" >> ~/.tmux.conf.local